package com.dxf.entity;

import com.dxf.service.Exam;
import org.springframework.beans.factory.annotation.Autowired;

public class Student {

    private Integer sex = 0; //0：男生1：女生，0是默认值

    private String name;

    private Integer age;

    private String grade;

    @Autowired
    private Exam exam;

    public Student() {
    }

    public Student(Integer sex, String name, Integer age, String grade) {
        this.sex = sex;
        this.name = name;
        this.age = age;
        this.grade = grade;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sex=" + sex +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", grade='" + grade + '\'' +
                '}';
    }
}
